﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TinDoanhNghiepChiTiet.aspx.cs" Inherits="WebHousingInfo.TinDoanhNghiepChiTiet" %>

<%@ Register Src="~/Controls/Header.ascx" TagName="Head" TagPrefix="Header" %>
<%@ Register Src="~/Controls/MenuFooter.ascx" TagName="MeNuDuoi" TagPrefix="MenuFooter" %>
<%@ Register Src="~/Controls/Footer.ascx" TagName="Foot" TagPrefix="Footer" %>
<%@ Register Src="~/Controls/Quangcaotraitrangcon.ascx" TagName="QC" TagPrefix="Quangcaotraitrangcon" %>
<%@ Register Src="~/Controls/TimKiemTrangCon.ascx" TagName="TK" TagPrefix="TimKiemTrangCon" %>
<%@ Register Src="~/Controls/NhaDatBanThueMoiTrangCon.ascx" TagName="NDM" TagPrefix="NhaDatBanThueMoiTrangCon" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Chi tiết thông tin Doanh Nghiệp</title>
</head>
<body>
    <form id="form1" runat="server">
        <div id="uni_wrapper">
            <Header:Head ID="Header" runat="server" />
	        <div id="uni_main">
	        <% string mode = Request.QueryString["iddn"];
	         var objecttindn=HousingInfo.Library.NewsBussinessBO.GetNewsBussinessBO(Convert.ToInt32(mode));   
	        %>
		        <div id="content" class="clearfix">
			        <div id="group_240_l">
			        <!--b box search-->
                        <TimKiemTrangCon:TK ID="TimKiemTrangCon" runat="server" />					     	
				        <NhaDatBanThueMoiTrangCon:NDM ID="NhaDatBanThueMoiTrangCon" runat="server" />
                        <Quangcaotraitrangcon:QC ID="Quangcaotraitrangcon" runat="server" />
			        </div>
			        <div id="group_710_r">
				        <div id="thongtin">
					        <div class="title">
						        <div class="subtitle">
							        <p><%=objecttindn.BussinessName%></p>
						        </div>
					        </div>
					        <div id="thongtinmota">		  
						        <div class="sub_title"> Thông tin về công ty</div>
						        <div>
						            <div style="float: left; width:30%;">
						                <% if (objecttindn.UrlImage != "")
                                            {
                                                if (checkurlimage(objecttindn.UrlImage) == true)
                                                {
                                                    string url = "TotalUpload/ImagesTotal/" + objecttindn.UrlImage;                                                                                        
                                                     %><a href="#"><img src="<%=url %>" width="210px" height="160px" border="0" align="left" /></a>
                                                     <% }
                                                else
                                                { %><a href="#"><img src="TotalUpload/ImagesTotal/noimage.gif" width="210px" height="160px" border="0" align="left" /></a>
                                                <% }
                                            }
                                            else
                                            { %>
                                                <a href="#"><img src="TotalUpload/ImagesTotal/noimage.gif" width="210px" height="160px" border="0" align="left" /></a>
                                            <%} %>
						            </div>
						            <div style="width:70%;">
						                <table border="0" cellpadding="0" cellspacing="3" class="bg01">
							                <tr>
							                  <td class="col_width_thongtin">Tên Công ty</td>
							                  <td class="col_width_chitiet">: <%=objecttindn.BussinessName %> </td>							          
							                </tr>
							                <tr>
							                    <td class="col_width_thongtin">Email</td>
							                    <td class="col_width_chitiet">: <%=objecttindn.Email%></td>
							                </tr>
							                <tr>
							                  <td class="col_width_thongtin">Địa chỉ</td>
							                  <td class="col_width_chitiet">: <%=objecttindn.BussinessAddress%> </td>							          
							                </tr>	
							                <tr>
							                    <td class="col_width_thongtin">Website</td>
							                    <td class="col_width_chitiet">: <%=objecttindn.BussinessWebsite%> </td>
							                </tr>
							                <tr>
							                  <td class="col_width_thongtin">Điện thoại</td>
							                  <td class="col_width_chitiet">: <%=objecttindn.BussinessPhone%> </td>
							                </tr>
							                <tr>
							                  <td valign="top" class="col_width_thongtin">Mô tả về công ty</td>
							                  <td class="col_width_chitiet">: <%=objecttindn.BussinessContent%> </td>
							                </tr>		
						                </table>
						            </div>
						        </div>
						        
					        </div>
				        <!--e subtitle-->
				        </div>
				        <div id="chitietmuaban">
				        <% var objecttin = HousingInfo.Library.NewsBussinessBOList.GetNewsBussinessBOList_Random_ByNumber(10, -1, -1);
				         %>
					        <div class="title_chitietmuaban">
						        <p>DOANH NGHIỆP KHÁC</p>
						        <span class="icon_6x7"><img src="Images/icon_6x7.gif" height="7" width="6" align="absbottom" />
							        <a href="XemThemTinDoanhNghiep.aspx">Xem thêm</a>
						        </span> 
					        </div>
					        <% foreach (var obtin in objecttin){
                                if(obtin.NewsBussinessID!= objecttindn.NewsBussinessID)
                                {%>
					            <table cellspacing="0" cellpadding="0" border="0" width="100%" class="margin_main_table">
                                      <tbody>
                                            <tr>
                                                <td width="15%">
                                                    <% if (obtin.UrlImage != "")
                                                    {
                                                        if (checkurlimage(obtin.UrlImage) == true)
                                                        {
                                                            string url = "TotalUpload/ImagesTotal/" + obtin.UrlImage;                                                                                        
                                                             %><a href="TinDoanhNghiepChiTiet.aspx?iddn=<%=obtin.NewsBussinessID %>"><img src="<%=url %>" height="60px" width="95px" class="img_l5" border="0" align="left" /></a>
                                                             <% }
                                                        else
                                                        { %><a href="TinDoanhNghiepChiTiet.aspx?iddn=<%=obtin.NewsBussinessID %>"><img src="TotalUpload/ImagesTotal/noimage.gif" height="60px" width="95px" class="img_l5" border="0" align="left" /></a>
                                                        <% }
                                                    }
                                                    else
                                                    { %>
                                                        <a href="TinDoanhNghiepChiTiet.aspx?iddn=<%=obtin.NewsBussinessID %>"><img src="TotalUpload/ImagesTotal/noimage.gif" height="60px" width="95px" class="img_l5" border="0" align="left" /></a>
                                                    <%} %>
			                                    </td>
                                                <td width="37%">
                                                    <p class="color_bg_link">
			                                        <a href="TinDoanhNghiepChiTiet.aspx?iddn=<%=obtin.NewsBussinessID %>"><%=obtin.BussinessName %></a></p>
				                                </td>
                                                <td width="48%">
                                                      <p class="color_bg_link"><span><%=obtin.BussinessAddress %></span></p>
                                                      Điện thoại: <span><%=obtin.BussinessPhone %></span><br>
                                                      Email:<a href="mailto:<%=obtin.Email %>"><%=obtin.Email%></a>
                                                </td>
                                           </tr>
                                    </tbody>
                                </table> 
                            <%}} %>       
				        </div>
			        </div>
		        </div>  	
		        <MenuFooter:MeNuDuoi ID="MenuFooter" runat="server" />	
	        </div>
	        <Footer:Foot ID="Footer" runat="server" />
        </div>    
    </form>
</body>
</html>
